Skip to content

Conversation

@kadirchan
Copy link
Contributor

This PR upgrades the o1js version used in framework to latest 2.10.0

Copy link
Member

@rpanic rpanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions, failing test should be easy to fix, otherwise good job!

publicOutput,

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
publicOutput:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you agree that publicOutput?.publicOutput would be the same semantically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would but we're getting {} instead of null or undefined as publicOutput in const publicOutput = await Reflect.apply(simulatedMethod, this, args); thus this approach gives Property 'publicOutput' does not exist on type '{}'. if we don't check explicitly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay got it. Do we have cases where the type is only a single "publicOutput" level so to speak? Because if so, we should probably find out where and make it the same everywhere

"@proto-kit/protocol": "*",
"@proto-kit/sequencer": "*",
"o1js": "^1.6.0",
"o1js": "^2.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current o1js version is 2.10.0, is this a typo or any particular reason you didn't go to 2.10 directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case, I added the same version as the updated mina fungible token, but I thought it wouldn't be a problem since it already uses the latest version on first installation anyway. I fixed it.

executionData
);
return {
publicOutput: await proveTransaction(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omg I hate that o1js made this the API, so verbose

@kadirchan kadirchan requested a review from rpanic November 5, 2025 10:08
@rpanic rpanic merged commit b3357aa into develop Nov 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants